# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'flutterTest' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for flutterTest

#  flutter_module = '../flutter_module_for_ios'
  
  flutter_application_path = '../my_flutter'
  load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
  install_all_flutter_pods(flutter_application_path)
  
  #pod 'MyFlutterPod', :path => '../MyFlutterPod'

  target 'flutterTestTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'flutterTestUITests' do
    # Pods for testing
  end

end

install! 'cocoapods', :deterministic_uuids => false

post_install do |installer|
#  flutter_application_path = '../HqwxFlutterModule'
#  framework_dir = load File.join(flutter_application_path, '.ios', 'Flutter')
#  update_configs(installer, framework_dir)
  flutter_post_install(installer)
  
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
            config.build_settings['ENABLE_BITCODE'] = "NO"
        end
    end
end

